<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>免打扰</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/im.css">
    <link href="css2/mobiscroll.scroller.css" rel="stylesheet" />
    <link href="css2/mobiscroll.scroller.android-ics.css" rel="stylesheet" />
    <style>
        html,
        body {
            height: 100%;
            overflow: hidden;
            background: #f7f7f7;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="dt_ch">
            <ul>
                <li>
                    <span>是否设置</span>
                    <div class="switch_d">
                        <span class="swd_active">开启</span>
                        <span>关闭</span>
                    </div>
                </li>
                <li>
                    <span>开始时间</span>
                    <span class="time sw_active" id="dt_t_start">21:00</span>
                </li>
                <li>
                    <span>结束时间</span>
                    <span class="time sw_active" id="dt_t_end">09:00</span>
                </li>
            </ul>
        </div>
    </div>

    <script src="js/jquery-1.8.3.js"></script>
    <script src="js/im.js"></script>
    <script src="js/picker.min.js"></script>
    <script src="js2/zepto.js"></script>
    <script src="js2/mobiscroll.zepto.js" type="text/javascript"></script>
    <script src="js2/mobiscroll.core.js" type="text/javascript"></script>
    <script src="js2/mobiscroll.scroller.js" type="text/javascript"></script>
    <script src="js2/mobiscroll.area.js"></script>
    <script src="js2/mobiscroll.scroller.android-ics.js"></script>
    <script src="js/timedata.js"></script>
    <script>
        $(".switch_d span").click(function() {
            $(this).addClass("swd_active").siblings().removeClass("swd_active")
            if ($(".switch_d span:first").hasClass("swd_active")) {
                $(".dt_ch li>.time").addClass("sw_active")
            } else {
                $(".dt_ch li>.time").removeClass("sw_active")
            }
        });
    </script>
</body>

</html>